.container {
  padding: 20rpx;
  background-color: #f5f5f5;
  min-height: 100vh;
}

.smart-form {
  background-color: #ffffff;
  border-radius: 20rpx;
  padding: 20rpx;
  box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.05);
}

.smart-form-group-content {
  border-radius: 15rpx;
  overflow: hidden;
  margin: 0 -10rpx;
}

.smart-form-item {
  margin-bottom: 20rpx;
  ::v-deep .uni-forms-item__label {
    font-weight: 500;
    color: #333333;
    margin-right: 10rpx;
  }
  ::v-deep .uni-forms-item__content {
    margin-left: -10rpx !important;
  }
}

/* 底部按钮样式 */
.smart-form-submit {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 30rpx 0 10rpx 0;
  position: relative;
  /* 确保移除了 margin-top */
}

.reservation-list {
  padding: 0 10rpx 10rpx;
}

.item {
  /* 调整项目样式，使用相对宽度而不是固定宽度 */
  width: 100%;
  margin: 30rpx 0 0 0; /* 移除auto居中，使用容器的padding来控制边距 */
  background: #ffffff;
  border-radius: 20rpx;
  box-shadow: 0 6rpx 16rpx 0 rgba(0, 0, 0, 0.08);
  padding: 30rpx;
  box-sizing: border-box;
  border: 1rpx solid #f0f0f0;

  .item-header {
    margin-bottom: 26rpx;

    .header-title-wrapper {
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: relative;

      .header-title {
        font-size: 30rpx;
        font-weight: bold;
        color: #333;
        flex: 1;
        margin-right: 20rpx;
      }
    }
  }

  .content {
    width: 100%;
    background: #f8f9fa;
    border-radius: 12rpx;
    padding: 12rpx;
    box-sizing: border-box;
    margin-bottom: 15rpx;
    border: 1rpx solid #eee;
    position: relative;

    .info-row {
      margin-bottom: 20rpx;
      display: flex;

      .label {
        font-size: 28rpx;
        color: #666666;
        width: 180rpx;
        font-weight: 500;
      }

      .value {
        font-size: 28rpx;
        color: #333333;
        flex: 1;
        font-weight: 400;
      }

      &:last-child {
        margin-bottom: 0;
      }
    }
  }

  .status-tag {
    position: absolute;
    top: 10rpx;
    right: 10rpx;
    padding: 4rpx 8rpx;
    border-radius: 4rpx;
    font-size: 24rpx;
    font-weight: bold;

    &.waiting {
      background-color: #FFF7E6;
      color: #FFA000;
    }

    &.success {
      background-color: #E8F5E9;
      color: #4CAF50;
    }

    &.expired {
      background-color: #FFEBEE;
      color: #F44336;
    }

    &.cancelled {
      background-color: #EEEEEE;
      color: #9E9E9E;
    }

    &.verified {
      background-color: #E3F2FD;
      color: #2196F3;
    }

    &.default {
      background-color: #F5F5F5;
      color: #757575;
    }
  }

  .footer {
    padding: 10rpx 0;
  }

  .footer-button {
    display: flex;
    justify-content: flex-end;

    .cancel-reservation-btn,
    .show-code-btn {
      border-radius: 50rpx;
      height: 60rpx;
      font-size: 26rpx;
      border: none;
      padding: 0 30rpx;
      margin: 0 10rpx;
    }

    .cancel-reservation-btn {
      background-color: #f0f0f0;
      color: #666666;
    }

    .show-code-btn {
      background-color: #007AFF;
      color: #ffffff;
    }
  }
}

// 二维码弹窗样式（移到全局，因为弹窗在根元素下）
.qr-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.qr-modal-content {
  width: 80%;
  background-color: #fff;
  border-radius: 10rpx;
  overflow: hidden;
}

.qr-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20rpx 30rpx;
  background-color: #f8f8f8;
  border-bottom: 1rpx solid #eee;
}

.qr-modal-title {
  font-size: 32rpx;
  font-weight: bold;
  color: #333;
}

.qr-modal-close {
  font-size: 40rpx;
  color: #999;
  cursor: pointer;
}

.qr-code-wrapper {
  display: flex;
  justify-content: center;
  padding: 30rpx;
  min-height: 200px;
  align-items: center;
}

.qr-image {
  width: 200px;
  height: 200px;
}

.loading-text {
  color: #666;
  font-size: 28rpx;
}

.qr-info {
  padding: 0 30rpx 30rpx;
}

.qr-info-item {
  display: flex;
  margin-bottom: 20rpx;
}

.qr-info-label {
  font-size: 28rpx;
  color: #666;
  width: 180rpx;
}

.qr-info-value {
  font-size: 28rpx;
  color: #333;
  flex: 1;
}

.qr-code-text {
  font-weight: bold;
  color: #007AFF;
}
